package com.cuixichang.minimalism.transfer.dto;

import org.springframework.util.Assert;
import com.cuixichang.minimalism.basal.core.BaseDTO;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
 * 系统权限表对象实体
 *
 * @author cuixichang
 * @date 2024-12-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class IPermissionDTO extends BaseDTO{
   /**
    * 权限名称
    */
    private String permissionName;
   /**
    * 权限编码
    */
    private String permissionCode;
   /**
    * 权限分组公告牌
    */
    private String permissionSignboard;
   /**
    * 系统编码
    */
    private String createSystemCode;

    @Override
    public void check() {
        Assert.hasText(permissionName,"权限名称不能为空");
        Assert.hasText(permissionCode,"权限编码不能为空");
        Assert.hasText(createSystemCode,"系统编码不能为空");
    }
}
